import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-changes-demo1',
  templateUrl: './changes-demo1.component.html',
  styleUrls: ['./changes-demo1.component.scss']
})
export class ChangesDemo1Component implements OnInit {
  profile: { name: string, age: number } = {
    name: 'Sunxt',
    age: 31,
  };

  constructor() { }

  ngOnInit() {
    setTimeout(() => {
      this.profile.name = 'New Name';
    }, 5000);
  }

}
